import api from '@/api/index.ts'

// 获取品牌官数据
export function GetDataDetail() {
  return api.get(`/api/brandofficial/config/detail`)
}
// 提交更新配置
export function PostBrandofficialConfig(params: any) {
  return api.post(`/api/brandofficial/config/modify`, params)
}

// 获取品牌官人员列表
export function GetBrandofficialAccountData(params: any) {
  return api.get('/api/brandofficial/account/list', { params })
}
// 获取详情
export function GetBrandoffialAccountDetail(id: string) {
  return api.get(`/api/brandofficial/account/detail/${id}`)
}
// 添加
export function PostCreateData(params: any) {
  return api.post('/api/brandofficial/account/create', params)
}
// 编辑
export function PutModifyData(params: any) {
  return api.put('/api/brandofficial/account/modify', params)
}

// 获取品牌官裂变券列表
export function GetBrandofficialTicketData(params: any) {
  return api.get('/api/brandofficial/ticket/list', { params })
}
// 获取品牌官裂变券详情
export function GetBrandoffialTicketDetail(id: string) {
  return api.get(`/api/brandofficial/ticket/detail/${id}`)
}
// 添加品牌官裂变券
export function PostCreateTicketData(params: any) {
  return api.post('/api/brandofficial/ticket/add', params)
}
// 编辑品牌官裂变券
export function PutModifyTicketData(params: any) {
  return api.put('/api/brandofficial/ticket/modify', params)
}
// 修改状态
export function PatchModifyType(params: any) {
  return api.patch('/api/brandofficial/ticket/modifystatus', params)
}

// 获取品牌官分润记录
export function GetBrandofficialFenrunList(params: any) {
  return api.get('/api/brandofficial/account/fenrun/list', { params })
}
// 获取品牌官分润明细
export function GetBrandofficialFenrunDetail(params: any) {
  return api.get('/api/brandofficial/account/fenrun/detail', { params })
}
